package com.lbd.media.bean;

import com.lbd.base.bean.AbstractEntity;
import lombok.*;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by WangYajie on 2016/9/21.
 */

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
@Entity
public class Media extends AbstractEntity {
    // 标题
    String title;
    // 内容
    @Lob
    String content;
    // 预览
    String preview;
    // 预览图片
    String previewImg;
    // 创建人id
    String createUserId;
    /*
     * notice 平台公告 companyDynamic 公司动态 news 媒体报道 consultation 行业咨询 faq 常见问题(Frequently Asked Questions)
     */
    String category;
    //浏览量
    Integer pageView;

    //状态  01-发布 02-草稿
    private String state;
    //发布时间-发布状态下的修改时间
    @Transient
    private Date publishTime;
    //来源
    private String source;

}
